import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path:'/',
    redirect:'/list'
  },
  {
    path:'/list',
    component:()=>import('../pages/list')
  },
  {
    // props:true,
    path:'/detail',
    component:()=>import('../pages/detail')
  }
];

const router = new VueRouter({
  routes,
});

export default router;
